import http from '@/api/request';

// 素材分类
export const getMaterialCategory = () => {
  return http.request({
    method: 'GET',
    url: '/app/material/category_list',
    params: { status: 1 },
  });
};

// 素材内容
export const getMaterial = (
  page: number,
  limit: number,
  categoryId: number,
  id: number,
  search: string
) => {
  return http.request({
    method: 'GET',
    url: '/app/material/list',
    params: {
      page_size: limit,
      page: page,
      material_category_id: categoryId,
      id: id,
      content: search,
      status: 1,
    },
  });
};
